package designPattern.builder;

/**
 * Created by cdxuhongya on 2017/1/6.
 */
public class Test {
    public static void main(String[] args) {
        PersonDirector director = new PersonDirector();
        Person person =  director.constractPerson(new ManBuilder());
        System.out.println(person);

        person =  director.constractPerson(new WomanBuilder());
        System.out.println(person);
    }
}
